package edu.uni.dormitory.mapper;

import edu.uni.dormitory.bean.RoomExchange;
import edu.uni.dormitory.bean.RoomExchangeExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author 郑伟森
 * @create 2019.05.01
 * @function 映射
 */
public interface RoomExchangeMapper {
    int countByExample(RoomExchangeExample example);

    int deleteByExample(RoomExchangeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(RoomExchange record);

    int insertSelective(RoomExchange record);

    List<RoomExchange> selectByExample(RoomExchangeExample example);

    RoomExchange selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") RoomExchange record, @Param("example") RoomExchangeExample example);

    int updateByExample(@Param("record") RoomExchange record, @Param("example") RoomExchangeExample example);

    int updateByPrimaryKeySelective(RoomExchange record);

    int updateByPrimaryKey(RoomExchange record);

    RoomExchange selectExchangeByApplyId(Long applyId);
}